<template>
	<view class="message-detail">
		<view>内容：{{info.content}}</view>
		<view>发送时间：{{info.createTime | dateFormat}}</view>
		<view>发送人：{{info.sendPersonName}}</view>
	</view>
</template>

<script>
	import API from '@/api';
	export default {
		data(){
			return {
				info: {}
			}
		},
		
		onLoad(query) {
			this.load(query.id)
		},
		
		methods: {
			load(id){
				let params = {	
					id
				}
				API.message.getInfo(params).then((res)=>{
					this.info = res.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.message-detail {
		background-color: #f8f8f8;
		min-height: 100vh;
		padding-bottom: 120rpx;
	}
</style>